﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MayorDetail.aspx.cs" Inherits="CSMF.MayorDetail" MasterPageFile="CSMF.Master" %>

<%@ Register Src="FootControl.ascx" TagName="FootControl" TagPrefix="uc1" %>
<%@ Register Src="~/PostComment.ascx" TagPrefix="uc1" TagName="PostComment" %>
<%@ Register Src="~/PostPoint.ascx" TagPrefix="uc1" TagName="PostPoint" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title><asp:Literal ID="ltlTitle" runat="server"></asp:Literal> - 市长带你游-海峡两岸微电影大赛</title>
    <meta name="keywords" content="微电影,微电影大赛,海峡两岸微电影大赛,海峡两岸,大赛,福建,旅游,旅行,电影" />
    <meta name="description" content="微电影大赛,海峡两岸微电影大赛,旅游微电影大赛,提供微电影投资,微电影管理,微电影演员,微电影拍摄,微电影纪实,微电影造型,微电影后期,微电影播放,微电影发布,微电影搜索,微电影分享。" />
    <link rel="shortcut icon" href="csmff.ico" type="image/x-icon" />

 

    <script language="JavaScript" type="text/JavaScript">

        function showhidediv(id) {

            var age = document.getElementById("msg_2");
            var age1 = document.getElementById("msg_3");
            var age2 = document.getElementById("msg_4");
            var name = document.getElementById("msg_1");
            if (id == 'name') {
                if (name.style.display == 'none') {
                    age1.style.display = 'none';
                    age.style.display = 'none';
                    age2.style.display = 'none';
                }
            } else if (id == 'age') {
                if (age.style.display == 'none') {
                    age.style.display = 'block';
                    age1.style.display = 'none';
                    age2.style.display = 'none';
                }
            }
            else if (id == 'age1') {
                if (age1.style.display == 'none') {
                    age.style.display = 'none';
                    age1.style.display = 'block';
                    age2.style.display = 'none';
                }
            }
            else {
                if (age2.style.display == 'none') {
                    age.style.display = 'none';
                    age1.style.display = 'none';
                    age2.style.display = 'block';
                }
            }
        }


        function addfavorite() {
            if (document.all) {
                window.external.addFavorite('http://www.csmff.com/', '海峡两岸微电影大赛');
            }
            else if (window.sidebar) {
                window.sidebar.addPanel('海峡两岸微电影大赛', 'http://www.csmff.com/', "");
            }
        } 

    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="home-banner">
        <div class="head">
            <p class="BigTitle">
                视频：<asp:Literal ID="litTitle" runat="server"></asp:Literal></p>
            <p class="BigTitlea">
                <a href="#">大赛首页</a>>><a href="#">市长带你游</a>>><a href="#">视频</a></p>
        </div>
        <div class="body">
            <div id="Tab2">
                <asp:Repeater ID="rptIcon" runat="server">
                    <ItemTemplate>
                        <a href='<%# "MayorDetail.aspx?id=" + Request.QueryString["id"] + "&vid=" + Eval("IconID") %>'>
                            <img src='<%# "Icon/" + GetImage(Convert.ToInt32(Eval("IconID"))) %>' /></a>
                    </ItemTemplate>
                    <SeparatorTemplate>
                    </SeparatorTemplate>
                </asp:Repeater>
                <embed src="<%= GetVideo(Convert.ToInt32(Request.QueryString["id"])) %>" quality="high"
                    width="1000" height="563" align="middle" allowscriptaccess="always" allowfullscreen="true"
                    mode="transparent" type="application/x-shockwave-flash"></embed>
            </div>
        </div>
        <div class="bodydown">
            <div id="msg_1" style="display: block; height: 60px; margin: 0px 5px 0 0">
                <p onclick='showhidediv("age");' class="one">
                </p>
                <p onclick='showhidediv("age1");' class="three">
                </p>
            </div>
            <p onclick='addfavorite()' class="two">
            </p>
            <p onclick='showhidediv("age2");' class="four">
            </p>
            <span>播放数：<asp:Literal ID="litCount" runat="server"></asp:Literal></span>
        </div>
    </div>
    <div class="home-row">
        <div class="home-mainleft">
            <div id="msg_2" style="display: none; float: left; margin: 0px 0px 10px 0; border: 1px solid #ebebec">
                    <uc1:PostPoint runat="server" ID="PostPointCtrl" />
            </div>
            <div id="msg_3" style="display: none; float: left; margin: 0px 0px 10px 0; border: 1px solid #ebebec">
                分享
            </div>
            <div id="msg_4" style="display: none; float: left; margin: 0px 0px 10px 0; border: 1px solid #ebebec">
                <asp:TextBox ID="txtWarning" runat="server" Rows="5" TextMode="MultiLine" Width="500px"></asp:TextBox><br />
                <asp:Button ID="btnWarning" runat="server" Text="发送错误报告" OnClick="btnWarning_Click" />
            </div>
            <div class="home-main">
                <div class="home-wlsz">
                    <div class="head">
                        <span>
                            <img src="imgs/imges/pinglun.png" width="134" height="49" /></span>
                    </div>
                </div>
                <div id="commentsdiv">
                    <uc1:postcomment runat="server" id="PostComment" />
                </div>
            </div>
        </div>
        <div class="home-aside" style="margin-top: 0px;">
            <div class="home-dszjl">
                <div class="head">
                    <img src="imgs/imges/pinglun3.png" width="116" height="48" style="margin-left: 5px;" /></div>
                <div class="Messagesolid">
                </div>
                <div class="Messagebox">
                    <h3>
                        <asp:Literal ID="litTitle1" runat="server"></asp:Literal></h3>
                    <p>
                        上传时间：<asp:Literal ID="litDate" runat="server"></asp:Literal></p>
                    <p>
                        <strong>视频简介：</strong><asp:Literal ID="litVideoContent" runat="server"></asp:Literal></p>
                </div>
            </div>
        </div>
        <!--
        <div class="home-aside massjian">
            <div class="home-dszjl">
                <div class="head">
                    <img src="imgs/imges/pinglun4.png" width="120" height="48" style="margin-left: 5px;" /></div>
                <div class="Messagesolid">
                </div>
                <div class="Messageimg">
                    <asp:Repeater ID="rptVideoLast" runat="server">
                        <ItemTemplate>
                            <div class="Messageimgsamll">
                                <a href='<%# "MerakDetail.aspx?id=" + Eval("ID") %>'><span>
                                    <img src='<%# "UpLoad/videoImage/" + Eval("Image") %>' width="80px" /></span>
                                    <p>
                                        <%# Eval("Title").ToString().Length > 10 ? Eval("Title").ToString().Substring(0, 9) + "..." : Eval("Title").ToString()%></p>
                                    <p>
                                        点击量：<%# Eval("Count").ToString()%></p>
                                </a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
        </div>
        -->
    </div>
    <br/>
</asp:Content>
